package com.example.game;

import java.util.Map;

/**
 * @author: HanTing Wang
 * @description:
 * @version:
 * @date: 2022/1/2
 */
public class Command {
    private Long commandID;
    private String name;
    private String clientID;
    private int status;
    private Map<String, Object> params;

    public Command() {
    }

    public Command(Long commandID, String name, String clientID, int status, Map<String, Object> params) {
        this.commandID = commandID;
        this.name = name;
        this.clientID = clientID;
        this.status = status;
        this.params = params;
    }

    public Long getCommandID() {
        return commandID;
    }

    public void setCommandID(Long commandID) {
        this.commandID = commandID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClientID() {
        return clientID;
    }

    public void setClientID(String clientID) {
        this.clientID = clientID;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "Command{" +
                "commandID=" + commandID +
                ", name='" + name + '\'' +
                ", clientID='" + clientID + '\'' +
                ", status=" + status +
                ", params=" + params +
                '}';
    }
}
